﻿$(function () {
    var json = {
        type: "AgenciesID",
        // AgenciesID: GetQueryString("id")
        AgenciesID: "100002"
    }
    //$("#highwayBox").append("<img data-id='device_2' src='images/stat/index_03_img.png' style='position: absolute; cursor: move; z-index: 0; left: 672px; top: 0px;'>");
    //$.get("../../Ashx/index.ashx", json, function (data) {
    //    console.log(JSON.stringify(data));
    //    for (var i = 0; i < data.length; i++) {
    //        if (data[i]["DEVICE_TYPEID"] == 15) {
    //            //$("#highwayBox").append("<img data-id='device_2' src='images/stat/index_03_img.png' style='position: absolute; cursor: move; z-index: 1; left: 672px; top: 0px;'>");
    //        }
    //    }
    //}, "json");
});
//获得地址栏参数
function GetQueryString(name) {

    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");

    var r = window.location.search.substr(1).match(reg);

    if (r != null) return unescape(r[2]); return null;

}